package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Region;
import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyCommentMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StrategyComment record);

    StrategyComment selectByPrimaryKey(Long id);

    List<StrategyComment> selectAll(Long strategyId);

    int updateByPrimaryKey(StrategyComment record);

    List<StrategyComment> selectForList(QueryObject qo);//分页

    void updataState(@Param("id") Long id, @Param("stateId") Long stateId);//更改状态

    int saveStrategyAndComment(StrategyComment strategyComment);//保存评论

    int isnerID(@Param("comment_id") Long comment_id, @Param("tagId_id") Long tagId_id);//中间表的保存

    Object getReviewEvaluation(Long id);

}